<!DOCTYPE HTML>
<html lang="zh">
<head>
  @include('user.public.heads')
</head>
<body>
    @include('user.public.navbar')
    <div class="container marketing all-body">
    @foreach ($list as $key => $value)
      <h2>
        <a class="word-title" href="{{ url('W', $value->id) }}">{{ $value->title }}</a>
      </h2>
      <hr class="featurette-divider">
      @endforeach
      
      <div class="text-center">
        <nav>
        <ul class="pager">
          @if ($list->currentPage() == 1)
          <li  class="disabled"><a href="#">Previous</a></li>
          @else
          <li><a href="{{ url('/') }}?page={{ $list->currentPage()-1 }}">Previous</a></li>
          @endif

          @if ($list->lastPage() == $list->currentPage())
          <li  class="disabled"><a href="#">Next</a></li>
          @else
          <li><a href="{{ url('/') }}?page={{ $list->currentPage()+1 }}">Next</a></li>
          @endif
        </ul>
        </nav>
      </div>

    </div>
    @include('user.public.foot')
</body>
</html>